import {createSlice} from "@reduxjs/toolkit"

const userSlice = createSlice({
    name:'user',
    initialState:{
        userImg:''
    },
    reducers:{
        // add(state,{payload}){
        //   state.users
        // },
        setImg(state,{payload}){
            state.userImg = payload
        }
    }
})

export default userSlice.reducer
export const {setImg} = userSlice.actions;